#include "sprite.h"

Sprite::Sprite(char *name){
    mSurface = SDL_LoadBMP(name);
}

void Sprite::draw(int x,int y){
    SDL_Rect rc = {x,y,mSurface->w,mSurface->h};
    SDL_BlitSurface(mSurface,0,SDL_GetVideoSurface(),&rc);
}
